package com.ruoyi.basic.domain;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;

import javax.validation.constraints.NotBlank;

import com.ruoyi.common.annotation.Excels;
import com.ruoyi.common.mybatisplus.core.BaseEntity;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import com.ruoyi.common.annotation.Excel;

/**
 * 专业技术职务对象 basic_post
 * 
 * @author ruoyi
 * @date 2021-12-06
 */
@Data
@NoArgsConstructor
@Accessors(chain = true)
@TableName("basic_post")
public class BasicPost extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 职务id */
    @TableId(type = IdType.AUTO)
    private Long postId;

    /** 人员id */
    private Long userId;

    @TableField(exist = false)
    private String userNo;

    @TableField(exist = false)
    @Excel(name = "员工姓名")
    private String userName;

    @TableField(exist = false)
    @Excel(name = "身份证号", cellType = Excel.ColumnType.STRING)
    private String idCard;

    @TableField(exist = false)
    private Long deptId;

    /** 取得职务资格 */
    @Excel(name = "取得职务资格")
    private String postName;

    /** 资格证号 */
    @Excel(name = "资格证号")
    private String postNo;

    /** 聘任职务资格 */
    @Excel(name = "聘任职务资格")
    private String postTitle;

    /** 职务级别 */
    @Excel(name = "职务级别", dictType = "basic_post_type", comboDict = "basic_post_type")
    private String postType;

    /** 取得职称等级 */
    @Excel(name = "取得职称等级", dictType = "basic_post_level", comboDict = "basic_post_level")
    private String obtainLevel;

    /** 聘任职称等级 */
    @Excel(name = "聘任职称等级", dictType = "basic_post_level", comboDict = "basic_post_level")
    private String postLevel;

    /** 取得方式 */
    @Excel(name = "取得方式", dictType = "basic_post_mode", comboDict = "basic_post_mode")
    private String postMode;

    /** 取得时间 */
    @Excel(name = "取得时间")
    private String obtainTime;

    /** 聘任时间 */
    @Excel(name = "聘任时间")
    private String engageTime;

    /** 是否默认 */
    @Excel(name = "是否默认", dictType = "sys_yes_no", comboDict = "sys_yes_no")
    private String isDefault;

    /** 附件地址 */
    private String fileUrl;

    /** 删除标志 */
    @TableLogic
    private String delFlag;

    @TableField(exist = false)
    private String userType;

    @TableField(exist = false)
    private String workDuty;
}
